package org.baojie.raft.future;

import java.util.concurrent.Future;

public class SimpleFuture {

    private volatile boolean stopped = false;
    private final Future<?> future;

    public SimpleFuture(Future<?> future) {
        this.future = future;
    }

    public final void cancel() {
        this.stopped = true;
        this.future.cancel(true);
    }

}
